package com.shunli.cterminal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shunli.cterminal.entity.SystemTrafficPolicy;
import com.shunli.cterminal.model.dto.TrafficPolicyStrategyDTO;
import com.shunli.cterminal.model.res.SystemTrafficPolicyVO;

import java.util.List;
import java.util.Map;

/**
 * 流量策略 实现类
 *
 * @author daodao
 * @since 2025-04-25 13:43:15
 */
public interface ISystemTrafficPolicyService extends IService<SystemTrafficPolicy> {

    List<SystemTrafficPolicyVO> queryPolicyList();

    /**
     * 执行策略 结果 固定策略顺序的方式
     *
     * @param trafficPolicyStrategyDTO 上一个规则过滤后的结果
     * @param projectOrderNumMap       默认传空 用于测试计算最终的分配比例
     * @return String
     */
    String parse(TrafficPolicyStrategyDTO trafficPolicyStrategyDTO, Map<String, Long> projectOrderNumMap);
}